//
//  MABaseViewController.m
//  MateAdv
//
//  Created by 茶 on 2023/9/14.
//

#import "MABaseViewController.h"

@interface MABaseViewController ()

@end

@implementation MABaseViewController

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.modalPresentationStyle = UIModalPresentationFullScreen;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.titleTextAttributes = @{NSFontAttributeName : MAFontScaleSemibold(18),
                                                                    NSForegroundColorAttributeName : UIColor.whiteColor};
    
    UIImage *image = [[UIImage imageNamed:@"nav_back_btn"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithImage:image style:UIBarButtonItemStylePlain target:nil action:nil];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
